package com.example.contact

import com.example.contact.dao.ContactDao
import com.example.featuresdk.dao.UserDao
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
class ContactHiltModule {

    @Provides
    @Singleton
    fun callback(userDao: UserDao, contactDao: ContactDao) = ContactDatabaseCallback(userDao, contactDao)

    @Provides
    @Singleton
    fun featureSdk() = ContactFeatureSDK()
}